<template>
  <div>
    <div class="bgff " v-if="show_edit">
      <div class="pt20 plr20 tx-r"  v-if="level==1">
        <el-button type="primary" size="mini" @click="toEdt">编辑</el-button>
      </div>
      <index ref="index" :a_type="a_type"></index>
    </div>
    <edit ref="edit" :cur_this="cur_this" :a_type="a_type" v-else></edit>
  </div>
</template>

<script>
import edit from "./modul/edit";
import Index from "./modul/index";
export default {
  components: { edit, Index },
  name: "article4",
  data() {
    return {
      a_type: "4",
      show_edit: true,
      cur_this: this,
      level:sessionStorage.level
    };
  },
  methods: {
    toEdt() {
      this.show_edit = false;
    }
  }
};
</script>

<style lang="scss">
</style>
